/*
    day05的第三个作业练习
*/
#include <stdio.h>
int main() {
    int num = 0;
    unsigned char uch = 128;
    printf("请输入一个数字");
    scanf("%d",&num);
    printf("%d", (num & uch) != 0);
    uch >>= 1;
    printf("%d", (num & uch) != 0);
    uch >>= 1;
    printf("%d", (num & uch) != 0);
    uch >>= 1;
    printf("%d", (num & uch) != 0);
    uch >>= 1;
    printf("%d", (num & uch) != 0);
    uch >>= 1;
    printf("%d", (num & uch) != 0);
    uch >>= 1;
    printf("%d", (num & uch) != 0);
    uch >>= 1;
    printf("%d\n", (num & uch) != 0);
    return 0;
}
